export const myDirective = (app) => {
    //全局自定义指令   调用myDirective 传进去app  所有的自定义组件放这里
    app.directive('test', {
        mounted(el, binding) {
            if (binding.value) {
                el.style.display = "none";
            } else {
                el.style.display = "";
            }
        },
        updated(el, binding) {
            if (binding.value) {
                el.style.display = 'none';
            } else {
                el.style.display = '';
            }
        }
    });
};

